package com.itmk.classes.service.impl;

import com.itmk.classes.dao.ClassesDao;
import com.itmk.classes.dao.impl.ClassesDaoImpl;
import com.itmk.classes.entity.ClassEditVo;
import com.itmk.classes.entity.ClassParm;
import com.itmk.classes.entity.Classes;
import com.itmk.classes.service.ClassesService;

import java.util.List;

public class ClassesServiceImpl implements ClassesService {
    private ClassesDao classesDao = new ClassesDaoImpl();
    @Override
    public void add(Classes classes) {
        classesDao.add(classes);
    }

    @Override
    public List<Classes> list(ClassParm parm) {
        return classesDao.list(parm);
    }

    @Override
    public int getCount(ClassParm parm) {
        return classesDao.getCount(parm);
    }

    @Override
    public ClassEditVo getClassByClassId(String classId) {
        return classesDao.getClassByClassId(classId);
    }

    @Override
    public void update(Classes classes) {
        classesDao.update(classes);
    }

    @Override
    public void delete(String claasId) {
        classesDao.delete(claasId);
    }

    @Override
    public List<Classes> getListforStudent() {
        return classesDao.getListforStudent();
    }

}
